<template>
	<view class="contents" :style="'height:'+screenHeight+'px;'">
		
			<view class="none" v-if="show">
				<view class="coent">
					<u-empty text="暂无报告" mode="list" icon-size="200">
					</u-empty>
				</view>
			</view>
			<view class="conentaa" v-else>
				<view class="list" v-for="(item,index) in datalist" :key="index">
					<view class="lista" style="margin-bottom: 10rpx;">
						<span>项目名称:&nbsp;<span style="font-weight: bold;">{{item.jyxmmc}}</span></span>
					</view>
					<view class="listb">
						<span>结果:&nbsp;{{item.jyjg}}</span>
						<span>范围:&nbsp;{{item.jgckz}}</span>
					</view>
				</view>
			</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show:true,
				jianyival:'',
				screenHeight: getApp().globalData.screenHeight-44,
				datalist: '',
				}
		},
		onLoad() {
			this.list()
		},
		methods: {
			list() {
				uni.showLoading({
					title: '请稍后',
					mask: true
				});
				this.$request("auth","pacsinfo",{type:1}).then(res => {
					console.log("报告查询", res)
					if (res.code == 1) {
						this.datalist = res.data.resultdata
						this.show=false
						uni.hideLoading();
					} else {
						this.show=true
						uni.hideLoading();
						uni.showToast({
							title: res.msg,
							icon: 'none',
							duration: 2000
						});
					}
				}).catch(err => {
					this.show=true
					uni.hideLoading();
					console.log("err", err)
					uni.showToast({
						title: err,
						icon: 'none',
						duration: 1000
					});
				});
			}
		}
	}
</script>

<style>
	@import './bgcx.css';
</style>